﻿using System;
using System.ComponentModel;
using System.Windows.Forms;
using SmartWallpaperChanger.Properties;

namespace SmartWallpaperChanger
{
    public partial class Log : Form
    {

        public Log()
        {
            InitializeComponent();
            
        }

        public void NotifyNewWallpaper(string wallpaper)
        {

        }

        public void DebugMessage(string message, bool newLine)
        {
            if (message == null) throw new ArgumentNullException("message");
            if(!Settings.Default.Debug) return;

            if (newLine)
            {
                Console.AppendText(String.Format(@"{0}
", message));
            }
            else
            {
                Console.AppendText(message);
            }
        }


    }

}